package com.sansi.pencilbook.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;

import java.io.Serializable;

/**
 * 功能说明: 书籍类别
 *
 * @author lsy13
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Category implements Serializable {
    //类别ID
    private int categoryId;

    //类别名称
    @NonNull
    private String categoryName;

    //父类别ID 0代表该类别没有父类
    @NonNull
    private int categoryParent;
}
